package com.opoc.mapper;

import com.opoc.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface AdminMapper {

  @Select("select * from admin where password = #{password} and account = #{account}")
  public Admin login(@Param("account") String account,
                     @Param("password") String password);

  @Select("select * from admin where id = #{id}")
  public Admin findAdminByAccount(@Param("id") String id);
}
